package com.gxgeek.springbootquartz.job;

import com.gxgeek.springbootquartz.task.JobAware;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author gaoxing
 * @create 2017-12-12 上午11:26
 */
@Component
public class Job1 implements JobAware {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("Job1:This is quartz print test!!! " + new Date());
    }

}
